n, m = map(int, input().split())
nums = list(map(int, input().split()))
students = set(range(1, n + 1))
for num in nums:
    students.discard(num)
if not students:
    print(0)
else:
    print(' '.join(map(str, sorted(students))))